This change is just cosmetic given the caller it has.
Change-Id: I591f92e56d9f5574d032dda380bc03b491b10738
/**
* @param string $url
* @param IContextSource $context
- * @return string|bool Either "local" or "remote" if in the farm, false otherwise
+ * @return string Either "local", "remote" if in the farm, "external" otherwise
*/
private static function getUrlDomainDistance( $url, IContextSource $context ) {
static $relevantKeys = [ 'host' => true, 'port' => true ];
$infoCandidate = wfParseUrl( $url );
if ( $infoCandidate === false ) {
- return false;
+ return 'external';
}
$infoCandidate = array_intersect_key( $infoCandidate, $relevantKeys );
}
}
- return false;
+ return 'external';
}
/**